let id = '130425199003016120';

let num= parseInt(id.substr(16,1))%2;

console.log(num )